<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:p="http://primefaces.org/ui">
<h:head>
   <title>Framework Processo</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <h:outputStylesheet name="css/screen.css" />
</h:head>
<h:body>
   <ui:insert name="content"/>
   
   <p:ajaxStatus onstart="dlgCarregando.show();" oncomplete="dlgCarregando.hide();">  
       <p:dialog widgetVar="dlgCarregando" header="Processando..." 
       	showEffect="fade" height="65" width="250" modal="true" 
       	closable="false" resizable="false">  
	    	<h:graphicImage value="/resources/img/aguarde.gif" />
	   </p:dialog> 
	</p:ajaxStatus> 
		
	 <p:dialog widgetVar="dlgMessage" header="Mensagem do Sistema" showEffect="fade" hideEffect="fade" 
	 		height="120" width="400" modal="true" closable="false" resizable="true">  
	   		<p:messages globalOnly="true" autoUpdate="true"/>
	   		<br/>
			<div style="text-align: center;">
	   			<p:button value="Ok" onclick="dlgMessage.hide(); return false;"/>
	   		</div>
	  </p:dialog> 
	   
	<p:outputPanel autoUpdate="true">
	  <script type="text/javascript">
			if(#{facesContext.maximumSeverity ne null}){
				dlgMessage.show();
			}
	   </script>
	</p:outputPanel>
</h:body>
</html>
